import type { FormRules } from 'element-plus'

export const accountFormRules: FormRules = {
  account: [
    {
      required: true,
      message: '请输入您的账号',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '请输入您的密码',
      trigger: 'blur'
    }
  ]
}

export const phoneFormRules: FormRules = {
  phone: [
    {
      required: true,
      message: '请输入您的手机号',
      trigger: 'blur'
    }
  ],
  code: [
    {
      required: true,
      message: '请输入您的密码',
      trigger: 'blur'
    },
    {
      min: 6,
      max: 6,
      message: '验证码必须为6位',
      trigger: 'blur'
    }
  ]
}
